<form action="" class="form-horizontal" role="form">
  
  <div class="form-group">
    <label class="col-sm-2 control-label">名称</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" name="name" placeholder="请输入名称" datatype="*"/>
    </div>
  </div>
  
  <div class="form-group">
    <label class="col-sm-2 control-label">内容</label>
    <div class="col-sm-6">
      <script id="content" type="text/plain"></script>
    </div>
  </div>
  
  <div class="form-group">
    <label class="col-sm-2 control-label">状态</label>
    <div class="col-sm-6">
      {$status}
    </div>
  </div>
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
      <button type="submit" class="btn btn-primary submit" data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/addPost">保存更改</button>
    </div>
  </div>
</form>

<!-- ueditor -->
<link rel="stylesheet" href="/ue/themes/default/css/ueditor.min.css">
<script type="text/javascript" src="/ue/ueditor.config.js"></script>
<script type="text/javascript" src="/ue/ueditor.all.js"></script>
<script type="text/javascript">
  window.UEDITOR_HOME_URL = "/ue/";
    var editor = UE.getEditor("content",{
      initialFrameWidth: "100%",
      initialFrameHeight: 300,
      textarea: "content"
    });
    
</script>